package com.feinno.urcs.group;

/**
 * Created by Lei Gao on 5/8/15.
 */
public class GroupException extends Exception { // 作为业务异常, 必须捕获处理,RuntimeException -> Exception

	private GroupError error;

	public GroupException(GroupError error) {
		this(error, "", null);
	}

	public GroupException(GroupError error, String msg, Exception ex) {
		super(msg, ex);
		this.error = error;
	}

	public int getSipCode() {
		return error.getSipCode();
	}

	public GroupError getError() {
		return error;
	}
}
